package com.boful.mooc.search.model;

import java.util.Date;

import org.apache.solr.client.solrj.beans.Field;

public class QuestionModel {
	@Field
	private String guid;
	@Field
	private long id;
	// title
	@Field
	private String name;
	// questionContent
	@Field
	private String description;
	@Field
	private long creatorId;
	@Field
	private String creatorName;
	@Field
	private Date createDate;
	@Field
	private int state;
	@Field
	private long categoryId;
	@Field
	private String categoryName;

	/***
	 * 待解决
	 */
	public static int STATE_OPEN = 1;
	/***
	 * 已解决
	 */
	public static int STATE_CLOSED = 0;

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getGuid() {
		return guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(long creatorId) {
		this.creatorId = creatorId;
	}

	public String getCreatorName() {
		return creatorName;
	}

	public void setCreatorName(String creatorName) {
		this.creatorName = creatorName;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	public int getState() {
		return state;
	}

	public void setState(int state) {
		this.state = state;
	}

	public long getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(long categoryId) {
		this.categoryId = categoryId;
	}

	public String getCategoryName() {
		return categoryName;
	}

	public void setCategoryName(String categoryName) {
		this.categoryName = categoryName;
	}
	
	

}
